﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Employee E = new Employee();
            Foreman F = new Foreman();//组长
            Manager M = new Manager();//经理
            AM A = new AM();//客户经理

            Console.WriteLine("请输入岗位；");
            string Name=Console.ReadLine();
            if (Name.Equals("组长"))
            {
                F.name = "组长";
                F.year = 6;
                F.money = 8000;
                F.ZZ();
            }
            if (Name.Equals("经理"))
            {
                M.name = "经理";
                M.year = 8;
                M.money = 10000;
                M.JL();
            }
            if (Name.Equals("客户经理"))
            {
                A.name = "客户经理";
                A.year = 12;
                A.money = 20000;
                A.KHJL();
            }
        }
    }
}
